package com.lxw.hi_mvp_mvvm.scene2_mvvm;

import androidx.databinding.ObservableField;

import com.lxw.hi_mvp_mvvm.User;

/**
 * @authour
 * @function
 * @date 2021/4/16
 */
public class HomeViewModel {

    public ObservableField<User> userFiled = new ObservableField<>();

    public void getUserInfo() {
        User user = new User();
        user.nickName = "nickName";
        user.address = "address";
        user.phone = "12345678";
        userFiled.set(user);
    }
} 
